<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
    <title>资源浏览器</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

    <!--[if IE]><link rel="SHORTCUT ICON" href="http://maven.oschina.net/favicon.ico"/><![endif]--><!-- Internet Explorer-->

    <link rel="stylesheet" href="/css/main.css" type="text/css" media="screen" title="no title" charset="utf-8">
    <style> 
    *{
      font-family: 微软雅黑,Verdana,sans-serif,宋体;padding:0px;margin: 0px;
    }
    table{font-family:'微软雅黑';font-size:12px;color:#777;border-collapse: collapse;border-spacing: 1px;}
    table tr td{line-height:22px;}
    table tr th{line-height:22px;color:#15a230;font-style:normal;font-weight:normal;}
    table tr.even td{background:#F5F5F5;}
     h1{color:#15a230;font-style:normal;font-weight:normal;font-size:18px;line-height:40px;border-bottom:#15a230 2px solid; padding-left: 10px;}
     .footer {
      height: 50px;
      background-color: #ebf2f8;
      margin: 0 auto;
      margin-top: 30px;
      border-top: 1px solid #CCC;
      padding-top: 15px;
      padding-left: 10px;
      }
      .footer .logo {
    float: right;
    }
    .footer ul {
    list-style: none;
    }
    .footer .logo img {
    border: 0px;
    height: 30px;
    }
    .footer ul li {
    float: left;
    margin: 0px 10px;
    color: #4183C4;
    }
    .footer ul li a {
    text-decoration: none;
    font-size: 12px;
    color: #4183C4;
    }
  </style>
  </head>
  <body>
    <h1>索引 ${path }</h1>
    <div style="min-height:800px;padding:10px;">
    <table cellspacing="0" width="1000">
      <tr>
        <th width="50%" align="left">文件</th>
        <th width="20%" align="left">最后修改</th>
        <th width="10%" align="right">大小</th>
      </tr>
      <tr>
        <td>
        	<c:choose>
	        	<c:when test="${parent ne null }">
	          		<a href="/listFiles?path=${parent }">上一层</a>
	          	</c:when>
	          	<c:otherwise>
	          		<b>根目录</b>
	          	</c:otherwise>
          	</c:choose>
        </td>
      </tr>
      <c:forEach items="${list }" var="file" varStatus="status">
      <tr 
      <c:if test="${status.index%2 eq 0}"> class="even" </c:if>
      >
         <td>
         	<a href="${file.url }">${file.name }
       		<c:if test="${file.isDirectory }">
       			/</a>
       		</c:if>
         </td>
         <td>${file.time }</td>
         <td align="right">${file.size }</td>
       </tr>
       </c:forEach>
    </table>
    <div style="clear:both;"></div>
    </div>
    <div class="footer">
      <%-- <p class="logo">
          <a href="http://www.oschina.net" target="_blank" title="开源中国社区"><img alt="Logo_s2" src="" style="padding:0px 10px;"></a>
            <a href="http://www.aliyun.com/" target="_blank" title="阿里云"><img alt="Logo_s2" src="></a>
      </p>
      <ul class="terms">
          <li>©<a href="http://www.oschina.net" target="_blank"> 2013 OSChina.NET</a></li>
      </ul> --%>
    </div>
  </body>
</html>
